import http from "@/utils/ai";

export const aiSuggestion = (messages: any[], options?: { signal?: AbortSignal }) => { 
    return http.post('/chat/completions',{
        model: 'deepseek-chat',
        messages,
        max_tokens: 100,
    }, {
    signal: options?.signal  // ✅ 传入 AbortSignal
  }
)
}